package models;

import com.et.ar.ActiveRecordBase;
import com.et.ar.annotations.BelongsTo;
import com.et.ar.annotations.Column;
import com.et.ar.annotations.Id;
import com.et.ar.annotations.Table;
import com.et.ar.annotations.Unique;

import java.sql.*;

//楼盘字典
@Table(name="stzd")
public class Stzd extends ActiveRecordBase{
	@Id private Integer id;
	@Column private String py;
	@Column private String fullpy;
	@Column private String dz;
	@Column private String qy;
	@Column private String dt;
	@Column private Timestamp inputdate;
	@Column private Timestamp editdate;
	@Column private Integer passflag;
	@Column private String z_id;
	@Column private String unitname;
	@Column private String oper;
	@Column private Integer hot;


	//	@BelongsTo(foreignKey="demoId")
	//	private Demo demo;

	//	public Demo getDemo() {
	//		return demo;
	//	}
	//	public void setDemo(Demo demo) {
	//		this.demo = demo;
	//	}

	//	public int getChildCount() throws Exception {
	//		return (int)count(Stzd.class, "parentId=?", new Object[]{id});
	//	}
	//	public String findChildIds() throws Exception {
	//		String s = "";
	//		List<Integer> ids = new ArrayList<Integer>();
	//		ids.add(id);
	//		while(!ids.isEmpty()){
	//			int id = ids.remove(0);
	//			s += id + ",";
	//			for(Stzd item: Stzd.findAll(Stzd.class, "parentId=?", new Object[]{id})){
	//				ids.add(item.getId());
	//			}
	//		}
	//		if (!s.equals("")){
	//			s = s.substring(0, s.length() - 1);
	//		}
	//		return s;
	//	}
	public void setId(Integer id){
		this.id=id;
	}
	public Integer getId(){
		return id;
	}

	public void setPy(String py){
		this.py=py;
	}
	public String getPy(){
		return py;
	}

	public void setFullpy(String fullpy){
		this.fullpy=fullpy;
	}
	public String getFullpy(){
		return fullpy;
	}

	public void setDz(String dz){
		this.dz=dz;
	}
	public String getDz(){
		return dz;
	}

	public void setQy(String qy){
		this.qy=qy;
	}
	public String getQy(){
		return qy;
	}

	public void setDt(String dt){
		this.dt=dt;
	}
	public String getDt(){
		return dt;
	}

	public void setInputdate(Timestamp inputdate){
		this.inputdate=inputdate;
	}
	public Timestamp getInputdate(){
		return inputdate;
	}

	public void setEditdate(Timestamp editdate){
		this.editdate=editdate;
	}
	public Timestamp getEditdate(){
		return editdate;
	}

	public void setPassflag(Integer passflag){
		this.passflag=passflag;
	}
	public Integer getPassflag(){
		return passflag;
	}

	public void setZ_id(String z_id){
		this.z_id=z_id;
	}
	public String getZ_id(){
		return z_id;
	}

	public void setUnitname(String unitname){
		this.unitname=unitname;
	}
	public String getUnitname(){
		return unitname;
	}

	public void setOper(String oper){
		this.oper=oper;
	}
	public String getOper(){
		return oper;
	}

	public void setHot(Integer hot){
		this.hot=hot;
	}
	public Integer getHot(){
		return hot;
	}

}

